We are migrating the bug tracker to github Issues. This is now the preferred way to report NASM bugs.

Self-registration is disabled due to spam issue (mail gorcunov@gmail.com or hpa@zytor.com to create an account)

Bug 3392564 - Infinite dashes written to map file when section name is too long
Summary: Infinite dashes written to map file when section name is too long
Status: CLOSED FIXED
Alias: None
Product: NASM
Classification: Unclassified
Component: Assembler (show other bugs)
Version: 2.15.xx
Hardware: All Linux
: Medium normal
Assignee: nobody
URL:
Depends on:
Blocks:
 
Reported: 2019-04-02 12:50 PDT by E. C. Masloch
Modified: 2019-06-02 21:28 PDT (History)
4 users (show)

Obtained from: Built from git using configure, From OS distribution
Generated by: ---
Bug category:
Observed for: ---
Regression: ---
Regression since:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description E. C. Masloch 2019-04-02 12:50:07 PDT
$ cat test.asm
%ifdef _MAP
 [map all _MAP]
%endif

section F23456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
$ nasm -v
NASM version 2.15rc0 compiled on Dec 30 2018
$ nasm test.asm -o test.bin -l test.lst
$ nasm test.asm -o test.bin -l test.lst -D_MAP=test.map
^C
$ head --bytes 1536 test.map

- NASM Map file ---------------------------------------------------------------

Source file:  test.asm
Output file:  test.bin

-- Program origin -------------------------------------------------------------

00000000

-- Sections (summary) ---------------------------------------------------------

Vstart            Start             Stop              Length    Class     Name
               0                 0                 0  00000000  progbits  .text
               0                 0                 0  00000000  progbits  F23456789012345678901234567890123456789012345678901234567890123456789012345678901234567890

-- Sections (detailed) --------------------------------------------------------

---- Section .text ------------------------------------------------------------

class:     progbits
length:                   0
start:                    0
align:     not defined
follows:   not defined
vstart:                   0
valign:    not defined
vfollows:  not defined

---- Section F23456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------$
$ /usr/bin/nasm -v
NASM version 2.12.01
$ /usr/bin/nasm test.asm -o test.bin -l test.lst
$ /usr/bin/nasm test.asm -o test.bin -l test.lst -D_MAP=test.map
^C
$ head --bytes 1536 test.map

- NASM Map file ---------------------------------------------------------------

Source file:  test.asm
Output file:  test.bin

-- Program origin -------------------------------------------------------------

00000000

-- Sections (summary) ---------------------------------------------------------

Vstart            Start             Stop              Length    Class     Name
               0                 0                 0  00000000  progbits  .text
               0                 0                 0  00000000  progbits  F23456789012345678901234567890123456789012345678901234567890123456789012345678901234567890

-- Sections (detailed) --------------------------------------------------------

---- Section .text ------------------------------------------------------------

class:     progbits
length:                   0
start:                    0
align:     not defined
follows:   not defined
vstart:                   0
valign:    not defined
vfollows:  not defined

---- Section F23456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------$
$
Comment 1 Chang S. Bae 2019-06-02 21:28:39 PDT
Fixed by 0995aa24aa7999a98f54c66ad989b47ce9a41e78